//
//  RoughSimReturnData.m
//  MacHeliosSim
//
//  Created by Paul Thompson on 9/8/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "RoughSimReturnData.h"


@implementation RoughSimReturnData

-(id)initWithKinData:(KinCalcReturnData *)theData
{
	energy = theData.energy;
	cmAngle = theData.cmAngle;
	labAngle = theData.labAngle;
	maxLabAngle = theData.maxLabAngle;
	distanceTraveled = 0.0;
	cyclotronFrequency = 0.0;
	fieldStrength = 0.0;
	velocity = 0.0;
	vPerp = 0.0;
	
	return self;
}

-(double)labAngleInDegrees
{
	return (labAngle*180.0/pi);
}

-(double)maxLabAngleInDegrees
{
	return (maxLabAngle*180.0/pi);
}

-(double)cmAngleInDegrees
{
	return (cmAngle*180.0/pi);
}

@synthesize energy, cmAngle, labAngle, maxLabAngle, 
distanceTraveled, cyclotronFrequency, fieldStrength, velocity, vPerp;


@end
